<div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">

    <div class="row ">

        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="info.title" placeholder="活动名称">
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date.lable" is-open="date.opened" 
                readonly close-text="关闭" current-text="今天" clear-text="清除" ng-click="dateOpen($event, date)" placeholder="开始时间"/>
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date1.lable" is-open="date1.opened" 
                readonly close-text="关闭" current-text="今天" clear-text="清除" ng-click="dateOpen($event, date1)" placeholder="结束时间"/>
        </div>
        <div class="col-sm-2 col-sm-offset-2">
            <button type="button" class="btn btn-block btn-info" ng-click="search()">搜索</button>            
        </div>
        <div class="col-sm-2">
            <button type="button" class="btn btn-block btn-info" ng-click="createactivity()">创建活动</button>            
        </div>
        
        
        

    </div>

</div>
</div>
</div> 
<!-- searchArea -->

<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered">
            <thead>
                <tr>
                    <th class="col-md-2 text-center">活动名称</th>
                    <th class="col-md-4 text-center">活动时间</th>
                    <th class="col-md-1 text-center">活动状态</th>
                    <th class="col-md-2 text-center">开启关闭活动</th>
                    <th class="col-md-3 text-center">操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="obj in objs">
                    <td class="text-center">{{obj.title}}</td>
                    <td class="text-center">{{obj.startTime}}--{{obj.endTime}}</td>
                    <td class="text-center" ng-show="obj.status==0">开始</td>
                    <td class="text-center" ng-show="obj.status==1">结束</td>
                    <td class="text-center">
                    <input
                        bs-switch
                        type="checkbox" 
                        ng-model="obj.isSelected"
                        switch-size="mini"
                        ng-change = "onChange(obj.isSelected,obj.id,obj.status)"
                        > 
                    </td>
                    <td class="text-center">
                        <a ng-click="edit(obj)" class="btn btn-info btn-xs">编辑活动</a>
                        <a ng-click="seeprizelist(obj.id)" class="btn btn-info btn-xs">奖品列表</a>
                        <a ng-click="seepbargainuser(obj.id)" class="btn btn-info btn-xs">参与用户</a>
                        <a ng-click="seewinuser(obj.id)" class="btn btn-info btn-xs">中奖用户</a>
                    </td>
                </tr>
                </tbody>
        </table>
        <div class="text-right">
             <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="getlist()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>
    </div>
</div>

</div>




